/**
 * 
 */
package com.shine.icis.hbean;

import java.io.Serializable;


/**
 * 日历维护
 * @author zhangxr
 *
 */
public class SubmitCalendar implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1998411859294309098L;
	private int dateId; //日期
	private int yearId;//年份ID
	private int weekdayNo;//当周中星期几
	private int weekNo;//一年第几周
	private int monthNo; //一年第几月
	private int quarterNo; //一年第几季
	private int incrementFlag; //1：增量，0：全量
	private int tradeFlag;  //交易标志
	public SubmitCalendar() {
		
	}
	
	public int getDateId() {
		return dateId;
	}

	public void setDateId(int dateId) {
		this.dateId = dateId;
	}

	public int getYearId() {
		return yearId;
	}

	public void setYearId(int yearId) {
		this.yearId = yearId;
	}

	public int getWeekdayNo() {
		return weekdayNo;
	}

	public void setWeekdayNo(int weekdayNo) {
		this.weekdayNo = weekdayNo;
	}

	public int getWeekNo() {
		return weekNo;
	}

	public void setWeekNo(int weekNo) {
		this.weekNo = weekNo;
	}

	public int getMonthNo() {
		return monthNo;
	}

	public void setMonthNo(int monthNo) {
		this.monthNo = monthNo;
	}

	public int getQuarterNo() {
		return quarterNo;
	}

	public void setQuarterNo(int quarterNo) {
		this.quarterNo = quarterNo;
	}

	public int getIncrementFlag() {
		return incrementFlag;
	}

	public void setIncrementFlag(int incrementFlag) {
		this.incrementFlag = incrementFlag;
	}

	public int getTradeFlag() {
		return tradeFlag;
	}

	public void setTradeFlag(int tradeFlag) {
		this.tradeFlag = tradeFlag;
	}
	public String getFormatDateId() {
		StringBuffer date = new StringBuffer(String.valueOf(dateId));
		date.insert(6, "-").insert(4, "-");
		return date.toString();
	}
	
	public String getFormatWeekdayNo() {
		String week = "";
		if(weekdayNo == 1){
			week = "星期日";
		}else if(weekdayNo == 2){
			week = "星期一";
		}else if(weekdayNo == 3){
			week = "星期二";
		}else if(weekdayNo == 4){
			week = "星期三";
		}else if(weekdayNo == 5){
			week = "星期四";
		}else if(weekdayNo == 6){
			week = "星期五";
		}else if(weekdayNo == 7){
			week = "星期六";
		}
		return week;
	}
}

